<div class="modal fade" id="globalDialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" ng-class="size">
    <div class="modal-content panel" ng-class="level">
      <div class="modal-header panel-heading">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h4 class="modal-title" id="myModalLabel">{{title}}</h4>
      </div>
      <div class="modal-body panel-body-center" ng-if="!isArray">
        {{message}}
      </div>
      <div class="modal-body panel-body-center" ng-if="isArray">
      	<p ng-repeat="msg in message">{{msg}}</p>
      </div>
      <div class="modal-footer panel-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-show="isConfirm" ng-click="cancel()">取消</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="confirm()">确定</button>
      </div>
    </div>
  </div>
</div>
